.class public Lcom/netease/util/model/BaseColumnInfo;
.super Lcom/netease/util/model/BaseInfo;
.source "BaseColumnInfo.java"

# interfaces
.implements Landroid/provider/BaseColumns;


# static fields
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/os/Parcelable$Creator",
            "<",
            "Lcom/netease/util/model/BaseColumnInfo;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field public _count:I

.field public _id:J


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 82
    new-instance v0, Lcom/netease/util/model/BaseColumnInfo$1;

    invoke-direct {v0}, Lcom/netease/util/model/BaseColumnInfo$1;-><init>()V

    sput-object v0, Lcom/netease/util/model/BaseColumnInfo;->CREATOR:Landroid/os/Parcelable$Creator;

    .line 19
    return-void
.end method

.method public constructor <init>()V
    .locals 2

    .prologue
    .line 19
    invoke-direct {p0}, Lcom/netease/util/model/BaseInfo;-><init>()V

    .line 20
    const-wide/16 v0, -0x1

    iput-wide v0, p0, Lcom/netease/util/model/BaseColumnInfo;->_id:J

    .line 22
    const/4 v0, -0x1

    iput v0, p0, Lcom/netease/util/model/BaseColumnInfo;->_count:I

    .line 19
    return-void
.end method


# virtual methods
.method public describeContents()I
    .locals 1

    .prologue
    .line 79
    const/4 v0, 0x0

    return v0
.end method

.method public generateContentValues()Landroid/content/ContentValues;
    .locals 1

    .prologue
    .line 49
    new-instance v0, Landroid/content/ContentValues;

    invoke-direct {v0}, Landroid/content/ContentValues;-><init>()V

    .line 50
    .local v0, values:Landroid/content/ContentValues;
    return-object v0
.end method

.method public readFromCursor(Landroid/database/Cursor;)V
    .locals 4
    .parameter "cursor"

    .prologue
    const/4 v3, -0x1

    .line 31
    const/4 v0, -0x1

    .line 32
    .local v0, index:I
    const-string v1, "_id"

    invoke-interface {p1, v1}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v3, :cond_0

    .line 33
    invoke-interface {p1, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v1

    iput-wide v1, p0, Lcom/netease/util/model/BaseColumnInfo;->_id:J

    .line 34
    const/4 v0, -0x1

    .line 36
    :cond_0
    const-string v1, "_count"

    invoke-interface {p1, v1}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v3, :cond_1

    .line 37
    invoke-interface {p1, v0}, Landroid/database/Cursor;->getInt(I)I

    move-result v1

    iput v1, p0, Lcom/netease/util/model/BaseColumnInfo;->_count:I

    .line 38
    const/4 v0, -0x1

    .line 40
    :cond_1
    return-void
.end method

.method public readFromJSONObject(Lorg/json/JSONObject;)V
    .locals 2
    .parameter "o"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lorg/json/JSONException;
        }
    .end annotation

    .prologue
    .line 55
    invoke-super {p0, p1}, Lcom/netease/util/model/BaseInfo;->readFromJSONObject(Lorg/json/JSONObject;)V

    .line 56
    if-eqz p1, :cond_1

    .line 57
    const-string v0, "_id"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 58
    const-string v0, "_id"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getLong(Ljava/lang/String;)J

    move-result-wide v0

    iput-wide v0, p0, Lcom/netease/util/model/BaseColumnInfo;->_id:J

    .line 59
    :cond_0
    const-string v0, "_count"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 60
    const-string v0, "_count"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/netease/util/model/BaseColumnInfo;->_count:I

    .line 62
    :cond_1
    return-void
.end method

.method public readFromParcel(Landroid/os/Parcel;)V
    .locals 2
    .parameter "source"

    .prologue
    .line 66
    invoke-super {p0, p1}, Lcom/netease/util/model/BaseInfo;->readFromParcel(Landroid/os/Parcel;)V

    .line 67
    invoke-virtual {p1}, Landroid/os/Parcel;->readLong()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/netease/util/model/BaseColumnInfo;->_id:J

    .line 68
    invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I

    move-result v0

    iput v0, p0, Lcom/netease/util/model/BaseColumnInfo;->_count:I

    .line 69
    return-void
.end method

.method public writeToParcel(Landroid/os/Parcel;I)V
    .locals 2
    .parameter "parcel"
    .parameter "paramInt"

    .prologue
    .line 73
    iget-wide v0, p0, Lcom/netease/util/model/BaseColumnInfo;->_id:J

    invoke-virtual {p1, v0, v1}, Landroid/os/Parcel;->writeLong(J)V

    .line 74
    iget v0, p0, Lcom/netease/util/model/BaseColumnInfo;->_count:I

    invoke-virtual {p1, v0}, Landroid/os/Parcel;->writeInt(I)V

    .line 75
    return-void
.end method
